﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CastUpon._Default" ValidateRequest="False" MaintainScrollPositionOnPostBack="True"  ResponseEncoding="utf-8"  %>
<%@ Import Namespace="CastUpon.Entities"%>
<%@ Register src="PostControl.ascx" tagname="PostControl" tagprefix="ou" %>
<%@ Register src="CommentControl.ascx" tagname="CommentControl" tagprefix="ou" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">
    <title>OpenUpon - Community driven map engine (CastUpon RSS feed)</title>
    <link href="/style.css" rel="stylesheet" type="text/css" />
    <link rel="alternate" type="application/rss+xml" title="OpenUpon Podcast Feed"  href="http://www.openupon.com/feeds" /> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>
    <body style="padding:10px;" class="oneColElsCtr">
        <form id="CommentForm" runat="server" visible="False">
    <div id="container">
  <div id="mainContent">
    <img src="/media/images/openupon.gif"/>

    <br />
    <br />
        <asp:Panel ID="NoChannelsPanel" runat="server" Visible="false">No RSS channels found on this CastUpon server.</asp:Panel>
        <asp:Panel ID="Episode" runat="server">
        <div class="entrytitle">
			<h2><a rel="bookmark" runat="server" ID="TitleLink"><asp:Literal ID="TitleLiteral" runat="server"></asp:Literal></a></h2> 
		</div>
        
        <asp:Literal ID="ArticleLiteral" runat="server"></asp:Literal>
        <p>&nbsp;</p>
        <div class="postinfo">
			<span class="postedby">Posted by <asp:Literal ID="AuthorLiteral" runat="server"></asp:Literal> on <asp:Literal ID="PostedDateLiteral" runat="server"></asp:Literal></span><br/>
		</div>
		<div class="commentsblock">
		<a name="comments" />
            <h3 id="comments"><asp:Literal ID="ResponseCountLiteral" runat="server" /></h3>
            <ol class="commentlist">
                <asp:Repeater ID="CommentRepeater" runat="server" >
                    <ItemTemplate>
                        <ou:CommentControl 
                                ID="CommentControl" 
                                runat="server"  
                                Author='<%# ((Comment)Container.DataItem).Author %>' 
                                EntityId='<%# ((Comment)Container.DataItem).Id %>' 
                                Website='<%# ((Comment)Container.DataItem).Website %>' 
                                Content='<%# ((Comment)Container.DataItem).ContentEncoded %>' 
                                DatePosted='<%# ((Comment)Container.DataItem).DateCreated %>'  />
                    </ItemTemplate> 
                </asp:Repeater>
            </ol>
        </div>
            <h3 id="respond">Leave a Reply</h3>
          <asp:Panel ID="PostPanel" runat="server">
            <ou:PostControl ID="PostCommentControl" runat="server"  />
          </asp:Panel>
            <p>
                <asp:Button ID="Submit" runat="server" Text="Submit Comment"  
                    OnClick="Submit_Click"  TabIndex="6" CausesValidation="true"/>
             </p>
            </asp:Panel>
        </div><!-- end #mainContent -->
       </div><!-- end #container -->

         </form>
        <font class="datatext"><asp:Literal ID="Listeners" runat="server"></asp:Literal></font>
    </body>
</html>